import pytest

# param = "com"


def test_param(param):
    if param == "com":
        print("baidu.com")
    elif param == "www":
        print("www.jd.com")
    print("结束")


if __name__ == '__main__':
    args = ["-q", "--param='com'", "命令行传参.py"]
    pytest.main(args)
